home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Format 1994 October
/
Macformat17.cdr
/
Shareware City
/
Developers
/
CPreferences Folder
/
CPreferences.h
< prev
Wrap
Text File
|
1994-01-20
|
625b
|
31 lines
// CPreferences.h 1.0
// Created by Richard A. Bray
// ©1994 Compu-Phobic, Inc.
class LFile;
// Define your own structure for your preferences.
// When the compiler supports templates, this class could be
// set up as a template.
typedef struct aPreference {
Str255 text;
} Preference;
class CPreferences
{
public:
CPreferences();
CPreferences(OSType inCreator, ConstStr255Param inName);
~CPreferences(void);
void CreateDefaultPreference(void);
void LoadPreferences(void);
void SavePreferences(void);
void GetPreferences(Preference &ioPref);
protected:
Preference mPrefs;
OSType mCreator;
LFile *prefFile;
};